# -*- coding:utf-8 -*-
# __author__ : "张百科"
# Date: 2021/1/22 14:14
# File: userlogs.py
# IDE: PyCharm
from django.db import models
from utils.common import prefix

class UserLogs(models.Model):
    module = models.CharField(max_length=20)
    function = models.CharField(max_length=10)
    description = models.CharField(max_length=200)
    log_time = models.DateTimeField(auto_now_add=True)
    user_id = models.IntegerField()
    ip=models.CharField(max_length=200,blank=True)

    class Meta:
        managed = False
        db_table = prefix+'user_logs'